package com.wy.network.Transfer.basic;

import java.io.FileInputStream;
import java.io.IOException;
import java.net.InetAddress;
import java.util.Properties;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2023/04/11/16:16
 */
public class _________ {
    //试试做一个properties文件.加载文件，读取里面的信息，读取里面的键值对
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.load(new FileInputStream("src\\transfer\\Transfer\\basic\\parameter.properties"));
        String port = properties.getProperty("port");
        String sendFilePath = properties.getProperty("SendFilePath");
        String receiveFilePath = properties.getProperty("ReceiveFilePath");
        String ip = properties.getProperty("ip");
        String fileName = properties.getProperty("FileName");
        System.out.println(fileName);
        InetAddress byName = InetAddress.getByName(ip);
        System.out.println(byName);
        System.out.println(ip);
        System.out.println(sendFilePath);
        System.out.println(receiveFilePath);
        System.out.println(port);


    }
}
